import 'package:flutter/material.dart';

import 'package:ilive_ihome/layout/page_navigation.dart' as view;
import 'package:ilive_ihome/model/dtype.dart';
import 'package:ilive_ihome/model/setting.dart';
import 'package:ilive_ihome/model/devices.dart';

String pkgName;
String appName;
String version;
String buildNumber;

String user;
String uid;
String nickname;
String token;

Size mediaSize;

List<ILiveDev> devices;
Setting setting = Setting();
Pages page = Pages();
DevBle ble = DevBle();

class Pages {
  String navTitle = "";
  int navIdxBakup = 0;
  int navIdx = 0;
  var navItems = <BottomNavigationBarItem>[
    BottomNavigationBarItem(title: Text('设备'), icon: Icon(Icons.dashboard)),
    BottomNavigationBarItem(title: Text('我的'), icon: Icon(Icons.person)),
  ];
  view.Update navUpdate;

  static void Signup() {
    page.navIdx = 0;
    page.navIdxBakup = 0;
    user = null;
    uid = null;
    nickname = null;
    token = null;
  }
}

